<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>日志管理</title>
        <%-- 全站样式 --%>
        <jsp:include page="/WEB-INF/jsps/template_style.jsp"></jsp:include>
    </head>

    <body class="page-body skin-navy">
        <div class="page-container">
			<%--侧边栏 --%>
			<jsp:include page="/WEB-INF/jsps/sidebar.jsp"></jsp:include>
            <div class="main-content">
				<%--导航栏 --%>
				<jsp:include page="/WEB-INF/jsps/navbar.jsp"></jsp:include>
                <div class="page-title">
                    <div class="title-env">
                        <h1 class="title">日志信息</h1>
                        <p class="description">您可以此页面查看用户的日志信息和系统的日志信息</p>
                    </div>
                </div>
                <div class="row">
                    <!-- Custom column filtering -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title">日志列表</h3>
                            <!--<div class="panel-options">
                                <a href="#" data-toggle="panel">
                                    <span class="collapse-icon">&ndash;</span>
                                    <span class="expand-icon">+</span>
                                </a>
                                <a href="#" data-toggle="remove">
                                    &times;
                                </a>
                            </div>-->
                        </div>
                        <div class="panel-body">
                            <script type="text/javascript">
                                jQuery(document).ready(function($) {
                                    $("#example-3").dataTable().yadcf([{
                                        column_number: 0
                                    }, {
                                        column_number: 1,
                                        filter_type: 'text'
                                    }, {
                                        column_number: 2,
                                        filter_type: 'text'
                                    }, {
                                        column_number: 3,
                                        filter_type: 'text'
                                    }, ]);
                                });
                            </script>
                            <table class="table table-striped table-bordered" id="example-3">
                                <thead>
                                    <tr class="replace-inputs">
                                        <th>用户名</th>
                                        <th>功能模块名</th>
                                        <th>操作功能</th>
                                        <th>时间</th>
                                        <th>查看详细信息</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    
                                    <tr>
                                        <td><a href="javascript:;" onclick="jQuery('#modal-2').modal('show', {backdrop: 'fade'});">张三</a></td>
                                        <td>光谱操作</td>
                                        <td>打印光谱</td>
                                        <td class="center">2017-07-15 09:08:40</td>
                                        <td class="center">
                                            <a href="javascript:;" onclick="jQuery('#detail').modal('show', {backdrop: 'fade'});" class="btn btn-info btn-sm btn-icon icon-left">
                                                详细信息
                                            </a>
                                        </td>
                                    </tr>
                                    
                                    <tr>
                                        <td><a href="javascript:;" onclick="jQuery('#modal-2').modal('show', {backdrop: 'fade'});">李四</a></td>
                                        <td>个人信息管理</td>
                                        <td>修改密码</td>
                                        <td class="center">2017-07-15 19:08:40</td>
                                        <td class="center">
                                            <a href="javascript:;" onclick="jQuery('#detail').modal('show', {backdrop: 'fade'});" class="btn btn-info btn-sm btn-icon icon-left">
                                                详细信息
                                            </a>
                                        </td>
                                    </tr>


                                </tbody>
                                <!--<tfoot>
                                    <tr>
                                        <th>Rendering engine</th>
                                        <th>Browser</th>
                                        <th>Platform(s)</th>
                                        <th>Engine version</th>
                                        <th>CSS grade</th>
                                    </tr>
                                </tfoot>-->
                            </table>
                        </div>
                    </div>
                </div>


				<%--页脚 --%>
				<jsp:include page="/WEB-INF/jsps/footer.jsp"></jsp:include>
            </div>
        </div>

        <div class="page-loading-overlay">
            <div class="loader-2"></div>
        </div>
        <div class="modal fade" id="detail">
            <div class="modal-dialog">
                <div class="modal-content">

                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title">详细信息</h4>
                    </div>

                    <div class="modal-body">
                        <div class="row">
                            <div class="col-md-6">

                                <div class="form-group">
                                    <label for="field-1" class="control-label">用户编号</label>

                                    <input type="text" class="form-control" id="field-1" placeholder="001" disabled/>
                                </div>

                            </div>
                            <div class="col-md-6">

                                <div class="form-group">
                                    <label for="field-1" class="control-label">用户名称</label>

                                    <input type="text" class="form-control" id="field-1" placeholder="张三" disabled/>
                                </div>

                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-6">

                                <div class="form-group">
                                    <label for="field-1" class="control-label">用户角色</label>

                                    <input type="text" class="form-control" id="field-1" placeholder="实验员" disabled/>
                                </div>

                            </div>
                            <div class="col-md-6">

                                <div class="form-group">
                                    <label for="field-1" class="control-label">操作时间</label>

                                    <input type="text" class="form-control" id="field-1" placeholder="2017-07-15 09:08:40" disabled/>
                                </div>

                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6">

                                <div class="form-group">
                                    <label for="field-1" class="control-label">操作的功能模块</label>

                                    <input type="text" class="form-control" id="field-1" placeholder="光谱管理" disabled/>
                                </div>

                            </div>
                            <div class="col-md-6">

                                <div class="form-group">
                                    <label for="field-1" class="control-label">操作的功能</label>

                                    <input type="text" class="form-control" id="field-1" placeholder="打印光谱" disabled/>
                                </div>

                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label for="field-1" class="control-label">详细描述</label>

                                    <input type="text" class="form-control" id="field-1" placeholder="打印'水果'收藏夹中的'苹果'光谱" disabled/>
                                </div>
                            </div>
                        </div>
                    
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-white" data-dismiss="modal">Close</button>
                    </div>
                </div>
            </div>
        </div>
<div class="modal fade" id="modal-2"  tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">详细信息</h4>
            </div>

            <div class="modal-body">
                <div class="row">
                    <div class="col-md-8">
                        <div class="row">
                            <div class="col-md-6">

                                <div class="form-group">
                                    <label for="field-1" class="control-label">用户编号</label>

                                    <input type="text" class="form-control" id="field-1" placeholder="001" disabled/>
                                </div>
                            </div>
                            <div class="col-md-6">

                                <div class="form-group">
                                    <label for="field-1" class="control-label">真实姓名</label>

                                    <input type="text" class="form-control" id="field-1" placeholder="John" disabled/>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="field-1" class="control-label">性别</label>

                                    <div class="radio">
                                        <label>
                                            <input type="radio" checked disabled>
                                            保密
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="field-1" class="control-label">出生年月</label>

                                    <input type="text" class="form-control" id="field-1" placeholder="2011年11月11日" disabled/>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="field-1" class="control-label">邮箱地址</label>
                                    <input type="text" class="form-control" id="field-1" placeholder="user@qq.com" disabled/>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="field-1" class="control-label">手机号码</label>
                                    <input type="text" class="form-control" id="field-1" placeholder="123456789789" disabled/>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <img src="../assets/images/user-4.png" alt="user-img" class="img-cirlce img-responsive img-thumbnail" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">

                        <div class="form-group">
                            <label for="field-1" class="control-label">身份证号</label>

                            <input type="text" class="form-control" id="field-1" placeholder="3601111111111111111111" disabled/>
                        </div>

                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="form-group">
                            <label for="field-1" class="control-label">个人地址</label>

                            <input type="text" class="form-control" id="field-1" placeholder="xxxxxxxxx" disabled/>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="form-group">
                            <label for="field-1" class="control-label">工作地址</label>

                            <textarea class="form-control autogrow" cols="5" id="field-5" placeholder="xxxxxxxxxxxxxxxx" disabled></textarea>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-white" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

        <%-- 尾部内容 --%>
        <jsp:include page="/WEB-INF/jsps/template_tail.jsp" />
        
        <!-- Imported styles on this page -->
        <link rel="stylesheet" href="assets/js/datatables/dataTables.bootstrap.css">
        <script src="assets/js/datatables/js/jquery.dataTables.min.js"></script>
        <script src="assets/js/datatables/dataTables.bootstrap.js"></script>
        <script src="assets/js/datatables/yadcf/jquery.dataTables.yadcf.js"></script>
        <!--Specific JS for this page-->
        <script type="text/javascript">
        </script>
    </body>

</html>